package com.pmcc.core.dto;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;
/**
 * Created by syk on 17/7/17.
 */
public class TreeMenuNode {
    private String name;
    private String key;
    private boolean isLeaf;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<TreeMenuNode> children;




    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public boolean isLeaf() {
        return isLeaf;
    }

    public void setLeaf(boolean leaf) {
        isLeaf = leaf;
    }

    public List<TreeMenuNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeMenuNode> children) {
        this.children = children;
    }
}
